import 'package:flutter/material.dart';
import '../common//Button.dart';

class ServicesPage extends StatefulWidget {
  const ServicesPage({Key key}) : super(key: key);

  @override
  _ServicesPageState createState() => _ServicesPageState();
}

class _ServicesPageState extends State<ServicesPage> {
  BuildContext context;

  void back(){
    Navigator.of(context).pop();
  }

  Widget _createPage(BuildContext context) {
    return Container(
      decoration: new BoxDecoration(
        color: Colors.white,
      ),
      child: Column(children: <Widget>[
        Image.asset('images/banner-index.png'),
        Container(
            alignment: Alignment(0, 0),
            padding: EdgeInsets.fromLTRB(30, 80, 30, 0),
            child: Column(
              crossAxisAlignment: CrossAxisAlignment.center,
              children: <Widget>[
                Image.asset('images/icon-none.png', width: 80),
                SizedBox(
                  height: 20,
                ),
                Text("当前模块正在开发中"),
                SizedBox(
                  height: 80,
                ),
                Button(name: '返回',callback:this.back)
              ],
            ))
      ]),
    );
  }

  @override
  Widget build(BuildContext context) {
    this.context = context;
    return Container(
        child: Scaffold(
      appBar: AppBar(
        title: Text("服务大厅"),
        centerTitle: true,
        // backgroundColor:Color(0xFF000000)
      ),
      body:SingleChildScrollView(
        child: this._createPage(context)
      )
    ));
  }
}